package sites.electrozine.tags;

import java.io.Writer;
import java.util.ArrayList;
import java.util.List;

import core.HtmlMapper;
import core.ISiteMapper;

public class SitemapEzTag implements ISiteMapper {

    @HtmlMapper(xpath = "/urlset/url/loc")
    private List<String> productLinks = new ArrayList<String>();

    public List<String> getProductLinks() {
        return productLinks;
    }

    public void setProductLinks(List<String> productLinks) {
        this.productLinks = productLinks;
    }

    public void addProductLinks(String productLink) {
        if (productLink.contains("productdetail")) {
            this.productLinks.add(productLink);
        }
    }

    @Override
    public void generateScript(Writer out) {
        // TODO Auto-generated method stub

    }

}
